package com.byb.server.service.mapper;

import com.byb.server.domain.*;
import com.byb.server.service.dto.OtherSafeguardDTO;

import org.mapstruct.*;

/**
 * Mapper for the entity OtherSafeguard and its DTO OtherSafeguardDTO.
 */
@Mapper(componentModel = "spring", uses = {})
public interface OtherSafeguardMapper extends EntityMapper <OtherSafeguardDTO, OtherSafeguard> {
    
    
    default OtherSafeguard fromId(Long id) {
        if (id == null) {
            return null;
        }
        OtherSafeguard otherSafeguard = new OtherSafeguard();
        otherSafeguard.setId(id);
        return otherSafeguard;
    }
}
